import React, { useState } from 'react';
import Count from './components/Count';
import OtherCount from './components/OtherCount';
import store from './redux/store';
export default function App() {
	const [ refresh, setRefresh ] = useState(false);
	// store中任意状态改变都会调用该回调
	store.subscribe(() => {
		setRefresh(!refresh);
	});

	return (
		<div>
			<Count />
			<OtherCount />
		</div>
	);
}
